package com.test.booksystem.service;

import com.test.booksystem.mapper.UserInfoMapper;
import com.test.booksystem.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo getUserName(String userName) {
        return userInfoMapper.findByName(userName);
    }

}
